home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / extensions / XKM.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  3KB  |  71 lines

  1. /* $Xorg: XKM.h,v 1.3 2000/08/17 19:46:43 cpqbld Exp $ */
  2. /************************************************************
  3.  Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
  4.  
  5.  Permission to use, copy, modify, and distribute this
  6.  software and its documentation for any purpose and without
  7.  fee is hereby granted, provided that the above copyright
  8.  notice appear in all copies and that both that copyright
  9.  notice and this permission notice appear in supporting
  10.  documentation, and that the name of Silicon Graphics not be 
  11.  used in advertising or publicity pertaining to distribution 
  12.  of the software without specific prior written permission.
  13.  Silicon Graphics makes no representation about the suitability 
  14.  of this software for any purpose. It is provided "as is"
  15.  without any express or implied warranty.
  16.  
  17.  SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
  18.  SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
  19.  AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
  20.  GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  21.  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 
  22.  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
  23.  OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
  24.  THE USE OR PERFORMANCE OF THIS SOFTWARE.
  25.  
  26.  ********************************************************/
  27. #ifndef XKM_H
  28. #define    XKM_H 1
  29.  
  30. #define    XkmFileVersion        15
  31.  
  32. #define    XkmIllegalFile        -1
  33. #define    XkmSemanticsFile    20
  34. #define    XkmLayoutFile        21
  35. #define    XkmKeymapFile        22
  36. #define    XkmGeometryFile        23
  37.  
  38. #define    XkmTypesIndex        0
  39. #define    XkmCompatMapIndex    1
  40. #define    XkmSymbolsIndex        2
  41. #define    XkmIndicatorsIndex    3
  42. #define    XkmKeyNamesIndex    4
  43. #define    XkmGeometryIndex    5
  44. #define    XkmVirtualModsIndex    6
  45. #define    XkmLastIndex        XkmVirtualModsIndex
  46.  
  47. #define    XkmTypesMask        (1<<0)
  48. #define    XkmCompatMapMask    (1<<1)
  49. #define    XkmSymbolsMask        (1<<2)
  50. #define    XkmIndicatorsMask    (1<<3)
  51. #define    XkmKeyNamesMask        (1<<4)
  52. #define    XkmGeometryMask        (1<<5)
  53. #define    XkmVirtualModsMask    (1<<6)
  54. #define    XkmLegalIndexMask    (0x7f)
  55. #define    XkmAllIndicesMask    (0x7f)
  56.  
  57. #define    XkmSemanticsRequired    (XkmCompatMapMask)
  58. #define    XkmSemanticsOptional    (XkmTypesMask|XkmVirtualModsMask|XkmIndicatorsMask)
  59. #define    XkmSemanticsLegal    (XkmSemanticsRequired|XkmSemanticsOptional)
  60. #define    XkmLayoutRequired    (XkmKeyNamesMask|XkmSymbolsMask|XkmTypesMask)
  61. #define    XkmLayoutOptional    (XkmVirtualModsMask|XkmGeometryMask)
  62. #define    XkmLayoutLegal        (XkmLayoutRequired|XkmLayoutOptional)
  63. #define    XkmKeymapRequired    (XkmSemanticsRequired|XkmLayoutRequired)
  64. #define    XkmKeymapOptional    ((XkmSemanticsOptional|XkmLayoutOptional)&(~XkmKeymapRequired))
  65. #define    XkmKeymapLegal        (XkmKeymapRequired|XkmKeymapOptional)
  66.  
  67. #define    XkmLegalSection(m)    (((m)&(~XkmKeymapLegal))==0)
  68. #define    XkmSingleSection(m)    (XkmLegalSection(m)&&(((m)&(~(m)+1))==(m)))
  69.  
  70. #endif /* XKM_H */
  71.